"""myproject URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""

from django.urls import path
from .views import *
from .views import OrdersView,OrdersKey,Preorder,PatientaddView,PatientView,GetQnToken,DepartmentView,Login_data, RegisterView, SendSms, MobileLogin, Code, DingTalkLogin, DingdingCallback, Login

urlpatterns = [
    path('login/', Login.as_view()),
    path('login', Login_data.as_view()),
    path('register/', RegisterView.as_view()),
    path('send_sms/', SendSms.as_view()),
    path("mobile/", MobileLogin.as_view()),
    path("code", Code.as_view()),
    path('ddurl/', DingTalkLogin.as_view()),
    path('ddcallback/', DingdingCallback.as_view()),
    path('departments/',DepartmentView.as_view()),
    path('getQnToken/',GetQnToken.as_view()),
    path('patients/',PatientView.as_view()),
    path('patient/add/',PatientaddView.as_view()),
    path('preorder/',Preorder.as_view()),
    path('orderskey/',OrdersKey.as_view()),
    path('orders/',OrdersView.as_view()),
    path('idcode/',IdcodeView.as_view()),
    path('alipaycallback/',PayView.as_view()),
    path('paytest/',PayTest.as_view()),
    path('success',OrderSuccess.as_view()),
    path('fail',OrderFail.as_view()),
    path('patient/', PatientDoct.as_view()),
]
# path('webourl/',WeboUrl.as_view()),
# path('wbcallback/',Wbcallback.as_view()),
# path('departments/',DepartmentView.as_view()),
# path('getQnToken/',GetQnToken.as_view()),
# path('patients/',PatientView.as_view()),
# path('preorder/',Preorder.as_view()),
# path('orders/',OrdersView.as_view()),
# path('orderskey/',OrdersKey.as_view()),
# path('fg/alipaycallback/',PayView.as_view()),
# path('search/',SearchDoctor.as_view()),
# path('baiduApi/',BaiduApiView.as_view()),
# path('publish/',PublishView.as_view())
